import {
    createRouter,  //创建路由实例
    createWebHashHistory,  // hash模式
    createWebHistory,  //html5模式
} from "vue-router";

const routes=[
    {
        path:'/',
        component:()=>import("../components/elm/goods.vue"),

        
    },
    {
        path:'/home',
        component:()=>import("../components/elm/goods.vue"),
        children:[
            { path:'goods',
            component:()=>import("../components/elm/goods.vue"),
            },          
        ]
        
    },
    {
        path:'/eva',
        component:()=>import("../components/elm/eva.vue")
        
    },
    {
        path:'/shoper',
        component:()=>import("../components/elm/header.vue")
        
    },

    
    
];
const router = createRouter({
    history:createWebHistory(),
    routes
  });
  
  export  default  router;
  
  


// export default createRouter({
//   history: createWebHistory(),
//   routes
// });
